package com.config.entity;

import java.util.Date;
import java.util.List;

import com.base.annotation.DisplayField;

/**
 * 名称：排班方式配置表
 * */
public class ShiftConfig {

	private Integer id;// 标识
	private Integer fatherId;// 班次的父节点（班制）
	private Integer lineId;// 生产线id(生产线和班制关联，班次生产线id可为空)
	private String shiftType;// 排版类型
	private String shiftName;// 排班名称
	private String isEffective;// 是否有效  班制默认为Y  班次为空  
	private Date effectiveStartTime;// 本次有效开始时间
	private Date effectiveEndTime;// 本次有效结束时间
	private Date startTime;// 开始时间
	private Date endTime;// 结束时间
	private String sequence;// 班次顺序
	private String remark;// 备注
	
	@DisplayField
	private List<ShiftConfig> children;
	@DisplayField
	private String start;//开始时刻
	@DisplayField
	private String end;//结束时刻
	@DisplayField
	private String lineName;

	public ShiftConfig(Integer id, Integer fatherId, Integer lineId, String shiftType,
			String shiftName, String isEffective, Date effectiveStartTime,
			Date effectiveEndTime, Date startTime, Date endTime,
			String sequence, String remark) {
		this.id = id;
		this.fatherId = fatherId;
		this.lineId = lineId;
		this.shiftType = shiftType;
		this.shiftName = shiftName;
		this.isEffective = isEffective;
		this.effectiveStartTime = effectiveStartTime;
		this.effectiveEndTime = effectiveEndTime;
		this.startTime = startTime;
		this.endTime = endTime;
		this.sequence = sequence;
		this.remark = remark;
	}

	public ShiftConfig() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getFatherId() {
		return fatherId;
	}

	public void setFatherId(Integer fatherId) {
		this.fatherId = fatherId;
	}

	public Integer getLineId() {
		return lineId;
	}

	public void setLineId(Integer lineId) {
		this.lineId = lineId;
	}

	public String getShiftType() {
		return shiftType;
	}

	public void setShiftType(String shiftType) {
		this.shiftType = shiftType;
	}

	public String getShiftName() {
		return shiftName;
	}

	public void setShiftName(String shiftName) {
		this.shiftName = shiftName;
	}

	public String getIsEffective() {
		return isEffective;
	}

	public void setIsEffective(String isEffective) {
		this.isEffective = isEffective;
	}

	public Date getEffectiveStartTime() {
		return effectiveStartTime;
	}

	public void setEffectiveStartTime(Date effectiveStartTime) {
		this.effectiveStartTime = effectiveStartTime;
	}

	public Date getEffectiveEndTime() {
		return effectiveEndTime;
	}

	public void setEffectiveEndTime(Date effectiveEndTime) {
		this.effectiveEndTime = effectiveEndTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	

	public List<ShiftConfig> getChildren() {
		return children;
	}

	public void setChildren(List<ShiftConfig> children) {
		this.children = children;
	}

	public String getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	@Override
	public String toString() {
		return "ShiftConfig [id=" + id + ", fatherId=" + fatherId + ", lineId="
				+ lineId + ", shiftType=" + shiftType + ", shiftName="
				+ shiftName + ", isEffective=" + isEffective
				+ ", effectiveStartTime=" + effectiveStartTime
				+ ", effectiveEndTime=" + effectiveEndTime + ", startTime="
				+ startTime + ", endTime=" + endTime + ", sequence=" + sequence
				+ ", remark=" + remark + "]";
	}

}
